package com.itheima.inreader;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class BufferedDeaderDemo {

    public static void main(String[] args) throws IOException {

        BufferedReader bufferedReader = new BufferedReader(new FileReader("day11\\a.txt"));

        int a =-1;
        while ((a=bufferedReader.read())!=-1){
            System.out.println((char)a);
        }
    }
}
